package cn.wolfcode.wolf2w.condition;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * 条件范围类，用来范围的对象
 */
@Getter
public class TravelCondition {
    // 初始化Map映射集合：
    public static final Map<Integer,TravelCondition> DAY_MAP = new HashMap<>();
    public static final Map<Integer,TravelCondition> Expend_MAP = new HashMap<>();

    static {
        DAY_MAP.put(1,new TravelCondition(1,3));
        DAY_MAP.put(2,new TravelCondition(4,7));
        DAY_MAP.put(3,new TravelCondition(8,14));
        DAY_MAP.put(4,new TravelCondition(15,Integer.MAX_VALUE));

        Expend_MAP.put(1,new TravelCondition(1,999));
        Expend_MAP.put(2,new TravelCondition(1000,6000));
        Expend_MAP.put(3,new TravelCondition(6000,20000));
        Expend_MAP.put(4,new TravelCondition(20000,Integer.MAX_VALUE));
    }

    private int min;
    private int max;

    public TravelCondition(int min,int max){
        this.max = max;
        this.min = min;
    }
}
